<!--
 * @Description: 基准线
 * @Author: charles
 * @Date: 2021-08-11 11:55:19
 * @LastEditors: charles
 * @LastEditTime: 2021-08-11 12:13:03
-->
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>基准线</title>
  <style>
    html {
      font-size: 40px;
    }

    .three {
      background-color: lightskyblue;
      height: 200px;
    }
    .three:after {
      content: "";
      height: 100%;
      display: inline-block;
      vertical-align: middle;
      
    }
  </style>
</head>
<body>
  <div style="background-color: lightskyblue;">
    <span>hello world</span>
    <img style="vertical-align: middle;" src="./images/message.png" alt="">
    <span>短信</span>
  </div>
  <br>

  <div style="background-color: lightskyblue;">
    <span>hello world</span>
    <img style="vertical-align: text-bottom;"  src="./images/message.png" alt="">
    <span style="display:inline-block;">短信</span>
  </div>

  <br>
  <div class="three">
    <span>hello world</span>
    <span>短信</span>
  </div>
</body>
</html>
